#include "glfw_lib.h"

#include <glad/glad.h>
#include <GLFW/glfw3.h>


GlfwLib::GlfwLib()
{
    glfwInit();

    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
}

GlfwLib::~GlfwLib()
{
    glfwTerminate();
}

static GlfwLib gInit;
